package com.guigu.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.guigu.pojo.Orders;

import java.util.List;
import java.util.Map;

public interface OrdersService extends IService<Orders> {


    //查询所有的订单
    Page<Orders> commqueryAllOrders(Integer loginUserId,Orders orders, Integer pageno, Integer pagesize);

    //商户确认收货
    Map editOrders(String  pId);

    //用户确认结算添加订单
    Map addOrder(Orders order);

    //商户确认用户提货
    Map updateOrders(Integer id);


    //获取订单流水号
    List<String> getIds(String str);

    //根据订单id查询订单信息
    Orders queryOrderById(Integer id);

    //用户订单查询
    Page<Orders> queryAllOrders(Orders orders, Integer pageno, Integer pagesize);

    //用户操作订单
    Map payOrder(Orders order);

    //用户删除订单
    Map delOrder(Orders order);
    //商户退货
    com.guigu.service.utils.Page queryAllOrdersReturn(Integer loginUserId,Orders orders, Integer pageno, Integer pagesize);

    com.guigu.service.utils.Page outboundOrder(Orders orders,Integer pageno, Integer pagesize);
}
